import { COMPREIFX, INDENTIFICATION } from "../../../libs/const/widget";
export const JSON = {
  isOnly: false,
  isModule: false,
  type: `${COMPREIFX}cus-img-upload`,
  sign: INDENTIFICATION.CUS_FORM,
  style: {
    width: "",
    position: "relative",
    left: 0,
    right: 0,
    top: 0,
    bottom: 0,
    marginTop: "0rpx",
    marginBottom: "0rpx",
    marginLeft: "0rpx",
    marginRight: "0rpx",
    backgroundColor: "rgba(0,0,0,0)",
  },
  attribute: {
    titleColor: "rgb(51,51,51)",
    title: "图片上传",
    count: 3,
    showLoading: true,
    required: true,
    value: [],
    requiredText: "请上传图片",
    sourceType: ["album", "camera"], // album 从相册选图，camera 使用相机，默认二者都有。如需直接开相机或直接选相册，请只使用一个选项
    tipsText:
      "建议尺寸600*800px，大小1M内，支持使用png、jpg、 gif格式，最多支持上传3张图片",
    api: {
      upload: "uploadImage",
    },
  },
  events: {},
  items: [],
};
export const CONFIG = {
  isShow: true,
  sign: INDENTIFICATION.CUS_FORM,
  type: `${COMPREIFX}cus-img-upload`,
  name: "图片上传",
  icon: "https://hyyxboss.oss-cn-shenzhen.aliyuncs.com/img/lcdp/img-upload.png",
  path: `/components/${COMPREIFX}cus-img-upload/index.vue`,
};

export default {
  JSON,
  CONFIG,
};
